package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 学生练习
 */
@Data
public class StudentExercise implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 题库id
     */
    private Integer questionBankId;

    /**
     * 学生id
     */
    private Integer studentId;

    /**
     * 当前练习状态
     */
    private Integer exerciseStatus;

    /**
     * 练习id
     */
    private Integer examPaperId;

    /**
     * 花费时间
     */
    private Integer useTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

}